+2005-08-26 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
+ to avoid overloading --force. (JP Rosevaar)
+
2005-08-26 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version to 2.9.0
+2005-08-26 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/updateiconcache.c: Add a separate --ignore-theme-index option
+ to avoid overloading --force. (JP Rosevaar)
+
2005-08-26 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version to 2.9.0
+2005-08-26 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtk-update-icon-cache.xml:
+ * gtk/gtk-update-icon-cache.1: Updates.
+
2005-08-26 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf/gdk-pixbuf.sgml:
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
-.TH "GTK\-UPDATE\-ICON\-CACH" "1" "08/23/2005" "" ""
+.TH "GTK\-UPDATE\-ICON\-CACH" "1" "08/26/2005" "" ""
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
gtk\-update\-icon\-cache \- Icon theme caching utility
.SH "SYNOPSIS"
.HP 22
-\fBgtk\-update\-icon\-cache\fR [\-\-force] [\-\-index\-only] [\-\-quiet] {iconpath}
+\fBgtk\-update\-icon\-cache\fR [\-\-force] [\-\-index\-only] [\-\-ignore\-theme\-index] [\-\-quiet] {iconpath}
.SH "DESCRIPTION"
.PP
\fBgtk\-update\-icon\-cache\fR
\-\-force, \-f
Overwrite an existing cache file even if it appears to be uptodate.
.TP
+\-\-ignore\-theme\-index, \-t
+Don't check for the existence of 'index.theme' in the icon theme directory. Without this option,
+\fBgtk\-update\-icon\-cache\fR
+refuses to create an icon cache in a directory which does not appear to be the toplevel directory of an icon theme.
+.TP
\-\-index\-only, \-i
Don't include image data in the cache.
.TP
<command>gtk-update-icon-cache</command>
<arg choice="opt">--force</arg>
<arg choice="opt">--index-only</arg>
+<arg choice="opt">--ignore-theme-index</arg>
<arg choice="opt">--quiet</arg>
<arg choice="req">iconpath</arg>
</cmdsynopsis>
</para></listitem>
</varlistentry>
+ <varlistentry>
+ <term>--ignore-theme-index</term>
+ <term>-t</term>
+ <listitem><para>Don't check for the existence of 'index.theme' in the icon theme
+ directory. Without this option, <command>gtk-update-icon-cache</command> refuses
+ to create an icon cache in a directory which does not appear to be the toplevel
+ directory of an icon theme.
+ </para></listitem>
+ </varlistentry>
+
<varlistentry>
<term>--index-only</term>
<term>-i</term>
#include <gdk-pixbuf/gdk-pixdata.h>
static gboolean force_update = FALSE;
+static gboolean ignore_theme_index = FALSE;
static gboolean quiet = FALSE;
static gboolean index_only = FALSE;
static GOptionEntry args[] = {
{ "force", 'f', 0, G_OPTION_ARG_NONE, &force_update, "Overwrite an existing cache, even if uptodate", NULL },
+ { "ignore-theme-index", 't', 0, G_OPTION_ARG_NONE, &ignore_theme_index, "Don't check for the existence of index.theme", NULL },
{ "index-only", 'i', 0, G_OPTION_ARG_NONE, &index_only, "Don't include image data in the cache", NULL },
{ "quiet", 'q', 0, G_OPTION_ARG_NONE, &quiet, "Turn off verbose output", NULL },
{ NULL }
path = g_locale_to_utf8 (path, -1, NULL, NULL, NULL);
#endif
- if (!force_update && !has_theme_index (path))
+ if (!ignore_theme_index && !has_theme_index (path))
{
g_printerr ("No theme index file in '%s'.\n"
- "If you really want to create an icon cache here, use --force.\n", path);
+ "If you really want to create an icon cache here, use --ignore-theme-index.\n", path);
return 1;
}